<nav id="main-nav" class="hide-for-small">
    <div class="row">
        <div class="large-3 columns">
            <div class="brand-logo"><a href="<?php echo(URL.$lg) ?>"><img src="<?php echo(URL); ?>content/img/plasticos-tower.png" alt="Plasticos Tower" /></a></div>
        </div>
        <div class="large-9 columns">
            <div class="right">                    
                <ul class="nav-menu">
                    <li class="has-sub" style="height: 30px"><a href="#" class="bandera">&#x25BC;</a>
                        <ul>
                            <li><a href="<?php echo(URL); ?>en" class="ing"><?php echo ($language->ingles); ?></a></li>
                            <li><a href="<?php echo(URL); ?>es" class="es"><?php echo ($language->espanol); ?></a></li>
                            <li class="rmb"><a href="<?php echo(URL); ?>pt" class="por"><?php echo ($language->portugues); ?></a></li>
                        </ul>
                    </li>
                    <li><a href="<?php echo(URL.$lg.'/'.$language->laEmpresaUrl) ?>" class="<?php echo(($language->laEmpresaUrl == $currentSection)?'active':''); ?>"><?php echo ($language->laEmpresa); ?></a></li>
                    <li><a href="<?php echo(URL.$lg.'/'.$language->servicioTecnicoUrl) ?>" class="<?php echo(($language->servicioTecnicoUrl == $currentSection)?'active':''); ?>"><?php echo ($language->servicioTecnico); ?></a></li>
                    <li><a href="<?php echo(URL.$lg.'/'.$language->garantiaUrl) ?>" class="<?php echo(($language->garantiaUrl == $currentSection)?'active':''); ?>"<?php echo ($language->garantia); ?></a></li>
                    <li><a href="<?php echo(URL.$lg.'/'.$language->contactoUrl) ?>" class="<?php echo(($language->contactoUrl == $currentSection)?'active':''); ?>"><?php echo ($language->contacto); ?></a></li>
                    <li class="rmr"><a href="<?php echo(URL.$lg.'/'.$language->clientesUrl) ?>" class="<?php echo(($language->clientesUrl == $currentSection)?'active':''); ?>"><?php echo ($language->accesoClientes); ?></a></li>
                    <div class="clear"></div>
                </ul>
            </div>
        </div>
    </div>
</nav>
<nav id="second-nav" class="hide-for-small">
    <div class="row">
        <div class="large-8 columns">
            <ul>
                <?php
                    $categorias = Doctrine_Core::getTable('categoria')->findAll();
                    $html = '';
                    foreach ($categorias as $categoria) {
                        if ($categoria->id == 1) continue;
                        $active = ($categoria->getUri($lg) == $currentSection)?'active':'';
                        $html .= '<li><a href="'.URL.$lg.'/'.$language->seccionUrl.'/'.$categoria->getUri($lg).'" class="'.$active.'">'.htmlentities($categoria->getValue($lg)).'</a></li>';
                    }
                    $active = ($language->ofertasUrl == $currentSection)?'active':'';
                    $html .= '<li><a href="'.URL.$lg.'/'.$language->seccionUrl.'/'.$language->ofertasUrl.'" class="'.$active.'">'.$language->ofertas.'</a></li>';
                    echo($html);
                ?>
            </ul>            
        </div>
        <div class="large-4 columns">
            <form action="" id="busqueda" method="post">
                <div class="row collapse">
                    <div class="large-8 large-offset-3 columns">
                        <input type="text" placeholder="<?php echo ($language->buscar); ?>" id="search-input">
                    </div>
                    <div class="large-1 columns">
                        <div class="lupa"></div>
                    </div>
                </div>
            </form>
        </div>
    </div>
</nav>